const fs = require('fs')

const school = require('./school')
const province = require('./province')

school.forEach((item) => {
  province.forEach((item2) => {
    if (item.province.includes(item2.desc)) {
      item.provinceCode = parseInt(item2.code)
    }
  })
})

fs.writeFileSync('./school.json', JSON.stringify(school, null, 2))